<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<html>
<head>

    <meta charset="UTF-8">
    <title>留言信息页面</title>
    <style>
        #div1{

            width: 300px;
            height: 150px;
            position: fixed;
            top: 20%;
            margin-left: 500px;
        }


    </style>
</head>
<body>
<img width="100%" height="100%" src="image/yj01.jpg" style="position:absolute; left:0; top:0; z-index:-1;"/>
<div>
    <h1 style="color: #FF0000">留言信息:</h1>
</div>
<div id="div1">
    <table border="1" align="center">
        <tr>
            <td>留言用户</td>
            <td>留言内容</td>
        </tr>

        <tr th:each="li:${list}">
            <td><a th:text="${li.getUserName()}"></a></td>
            <td><a th:text="${li.getMsg()}"></a></td>


        </tr>

    </table>

</div>


</body>

</html>